<%@ page language="java" contentType="text/html; charset=EUC-KR" pageEncoding="EUC-KR"%>
<% System.out.println("**************** index page ****************"); %>

<%
	Object obj = session.getAttribute("user");
	if(obj == null) {
		System.out.println("index:null session");
		response.sendRedirect("./login.jsp");
		return;
	}
%>
<html>
<head>
<title>PolarBear</title>
</head>
<body leftmargin="0" topmargin="0">
<%
	String body = request.getParameter("body");
	if(body == null){
		body = "calendarlist.jsp";
	}
	
	String recentAlarm = request.getParameter("recentAlarm");
	if(recentAlarm == null){
		recentAlarm = "recentlist.jsp";
	}
	
	String notifyAlarm = request.getParameter("notifyAlarm");
	if(notifyAlarm == null){
		notifyAlarm = "notifylist.jsp";
	}
%>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
	<th>
		<table border="0" width="100%">
		<tr>
			<td bgcolor="#000000"><jsp:include page="<%=notifyAlarm %>"/></td>
		</tr>
			<tr><td><jsp:include page="<%=recentAlarm %>"></jsp:include></td>
		</tr>
		</table>
	</th>
</tr>
<tr>
	<td><jsp:include page="<%=body %>"/></td>
</tr>
</table>
</body>
</html>